package com.esun.common.enums;

/**
 * @author John.xiao
 * @date 2021/10/12 14:16
 */
public class LogAgent {
	private static  ThreadLocal<LogInfo> local = ThreadLocal.withInitial(() -> null);

	private LogAgent() {
	}

	public static void set(LogInfo logInfo) {
		local.set(logInfo);
	}

	public static LogInfo get() {
		return local.get();
	}

	public static void remove(){
		local.remove();
	}
}
